package com.yf.user.domain;

import lombok.Data;

import java.math.BigDecimal;

@Data
public class DrMemberFunds {
	
	 private Integer uid;

    private BigDecimal crushCount;

    private BigDecimal carryCount;

    private BigDecimal investAmount;

    private BigDecimal balance;

    private BigDecimal freeze;

    private BigDecimal wprincipal;

    private BigDecimal winterest;

    private BigDecimal wpenalty;
    
    private BigDecimal investProfit;//投资收益
    
    private BigDecimal spreadProfit;//推广收益

	private BigDecimal sumAmount;//总资产
    /**
     * 交易变动金额
     */
    private BigDecimal changeAmount;
	public DrMemberFunds() {
		super();
	}

	public DrMemberFunds(Integer uid, BigDecimal crushCount,
			BigDecimal carryCount, BigDecimal investAmount,
			BigDecimal balance, BigDecimal freeze, BigDecimal wprincipal,
			BigDecimal winterest, BigDecimal wpenalty) {
		super();
		this.uid = uid;
		this.crushCount = crushCount;
		this.carryCount = carryCount;
		this.setInvestAmount(investAmount);
		this.balance = balance;
		this.freeze = freeze;
		this.wprincipal = wprincipal;
		this.winterest = winterest;
		this.wpenalty = wpenalty;
	}

	public boolean haveBalance(){
		if (null == balance || balance.compareTo(BigDecimal.ZERO) <= 0) {
			return false;
		}
		return true;
	}

}